package bi.uc.login;

import android.os.Handler;
import android.os.Message;

/**
 * class name:DownloadApkThread<BR>
 * class description:下载apk的线程<BR>
 * PS： <BR>
 * 
 * @version 1.00 2012-4-5
 * @author ZHENSHI)peijiangping
 */
public class DownloadApkThread implements Runnable {
	private Handler handler;
	private static final String url = "http://bi.bi-uc.com/UpgradeFile/Android/bi.apk";
	private static final String fileName = "bi.apk";
	private static final String path = "/sdcard/bi";

	public DownloadApkThread(Handler handler) {
		this.handler = handler;
	}

	@Override
	public void run() {
		System.out.println("下载线程开启");
		Message message = new Message();
		message.what = HttpDownload.downLoadFile(url, fileName, path);
		handler.sendMessage(message);
	}
}
